package com.jt.controller;

import com.jt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.ws.soap.Addressing;

@RestController
public class UserController {
    @Autowired//依赖注入
    private UserService userService;
    @RequestMapping("getmsg")
    public String getMsg(){
        return userService.getMsg();
    }

}
